package com.sundi.ecgeneralize.mapper;

import com.sundi.ecgeneralize.dto.CouponDto;
import com.sundi.ecgeneralize.entity.EcCoupon;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 优惠券信息及规则表 Mapper 接口
 * </p>
 *
 * @author Mht
 * @since 2020-02-24
 */
public interface EcCouponMapper extends BaseMapper<EcCoupon> {
    List<EcCoupon> selectConponList(CouponDto couponDto);

    void updAndDel(Integer id);

    EcCoupon getCoupon(@Param("id") Integer id);



}
